

SET( SX_MICE_ROOT ${PROJECT_SOURCE_DIR}/addons/sxMice )

#set includes, also make available in parent scope
SET( SX_MICE_INCLUDES  
	${SX_MICE_ROOT}/include  
	${SX_MICE_ROOT}/libs/manymouse
)
SET( SX_MICE_INCLUDES  
	${SX_MICE_ROOT}/include  
	${SX_MICE_ROOT}/libs/manymouse  
	PARENT_SCOPE
 )
INCLUDE_DIRECTORIES( ${SX_MICE_INCLUDES} )

	
ADD_LIBRARY( sxMice STATIC
	${SX_MICE_ROOT}/include/sxMice/Mice.h
	${SX_MICE_ROOT}/src/Mice.cpp
	
	${SX_MICE_ROOT}/libs/manymouse/linux_evdev.c
	${SX_MICE_ROOT}/libs/manymouse/macosx_hidmanager.c
	${SX_MICE_ROOT}/libs/manymouse/macosx_hidutilities.c
	${SX_MICE_ROOT}/libs/manymouse/manymouse.c
	${SX_MICE_ROOT}/libs/manymouse/manymouse.h
	${SX_MICE_ROOT}/libs/manymouse/windows_wminput.c
	${SX_MICE_ROOT}/libs/manymouse/x11_xinput.c	
)				

TARGET_LINK_LIBRARIES( sxMice  
	sx  ${SX_LINK_LIBRARIES}
	sxMice
)

SET_TARGET_PROPERTIES( sxMice PROPERTIES 
	ARCHIVE_OUTPUT_DIRECTORY  ${SX_MICE_ROOT}/bin
)
